﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<Brjostagjof.Models.ImageViewModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Brjóstagjöf- Mínar Myndir
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h1>Mínar myndir</h1>
        <% foreach (var item in Model.images)
        { %>
            <div class="minarMyndir">
                <a href="/Home/ShowImage/<%:item.ID %>" target="_blank"> <img  src="/Home/ShowImage/<%:item.ID %>" alt="<%:item.ImageTitle %>"/></a>
                <p><%: item.ImageTitle %></p>
            </div>
          <%} %>
        <p class= "tilbaka">
             <%: Html.ActionLink("Til Baka", "MittSvaedi") %>
        </p>         
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="Actions" runat="server" >
    <%Html.RenderPartial("PartialViews/Actions", "Mynd"); %>
</asp:Content>
